$(function(){
    if(userid == null || userid == ''){
        window.location.href = '/LianniuWeb/buyerOrder/login.do'
        return;
    }

    $.ajax({
        url:server_url + '/rest/frontUser/getFrontUser.do',
        data:{usersid:userid},
        success:function(data){
            console.log(data);
            if (data.data[0].picPath != null && data.data[0].picPath != ''){
                $(".photo_box").css("background","#d6ffeb url("+data.data[0].picPath+") no-repeat center");
                $(".photo_box").css("background-size","cover");
            }
        }
    })
})
function infomationDetail(){
    window.location.href=server_url+"/buyerOrder/mine_info.do"
}